package com.xiangban.yanglaodajie_platform.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangban.yanglaodajie_platform.entity.User;
import com.xiangban.yanglaodajie_platform.entity.dto.LoginUserDto;
import com.xiangban.yanglaodajie_platform.entity.dto.UserDto;
import com.xiangban.yanglaodajie_platform.entity.vo.UserApiVo;
import com.xiangban.yanglaodajie_platform.entity.vo.UserVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/2/3 11:38
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

   void updateAccumulatePoints(Map<String,Object> map);
   int updPassword(LoginUserDto loginUserDto);

   int updAccumulatePoints(Map<String,Object> map);

   List<User> getUserInfo(LoginUserDto user);

   void registerUser(UserVo user);

   User checkUser(User user);

   UserDto getUserInfoById(UserDto user);

   List<Object> choiceHobby(Map<String,Integer> map);
   List<Object> getHobbyById(List<Integer> list);

   void updateUser(UserApiVo userApiVo);
   void updSignIntegral(User user);

   User findUserByPhone(UserApiVo userApiVo);
}
